<?php
namespace App\Transformers;
use App\Models\Comment;
use App\Models\User;
use League\Fractal\TransformerAbstract;

class CommentTransformer extends TransformerAbstract
{
    public function transform(Comment $comment){
        return [
            'id'            =>$comment->id,
            'write_id'      =>$comment->write_id,
            'subs'          =>$comment->subs,
            'user_id'       =>$comment->user_id,
            'is_locked'     =>$comment->is_locked,
            'created_at'    =>$comment->created_at,
//          'updated_at' =>$comment->updated_at
        ];
    }
}
